<template>
  <div>
    <h1>action使用</h1>
    <h2>{{ userInfo.name }}{{ userInfo.age }}</h2>
    <button @click="getList('10月')">修改</button>
  </div>
</template>
<script>
import { mapState, mapActions } from "vuex";
export default {
  computed: {
    ...mapState(["userInfo"]),
  },
  methods: {
    ...mapActions(["getList"]),
  },
};
</script>
<style lang="scss" scoped>
</style>